//
//  MacQQWindowController.swift
//  MacStudy
//
//  Created by 30san on 2022/9/30.
//  Copyright © 2022 Dawninest. All rights reserved.
//

import Cocoa

class MacQQWindowController: NSWindowController {

    override func windowDidLoad() {
        super.windowDidLoad()

        let storyboard = NSStoryboard(name: NSStoryboard.Name("MacQQ"), bundle: nil)
        let vc = storyboard.instantiateController(withIdentifier: NSStoryboard.SceneIdentifier.init("MacQQViewController")) as! NSViewController
        // 设置内容控制器
        self.contentViewController = vc
        
        // window保持居中显示,不记录上一次的位置
        self.window?.isRestorable = false
        
        // 设置大小  同样需要 self.window?.isRestorable = false
        self.window?.setFrame(NSRect(x: 0, y: 0, width: 700, height: 500), display: true)
        self.window?.center()
        

        
    }
    
}
